Skip to content

Fix EraseAllParamSet binding for compiled RefinableObj - #110

Merged
vincefn merged 3 commits into
diffpy:mainfrom
clemisch:fix-erase-all-param-set
Aug 25, 2026
Merged

Fix EraseAllParamSet binding for compiled RefinableObj#110
vincefn merged 3 commits into
diffpy:mainfrom
clemisch:fix-erase-all-param-set

Conversation

@clemisch

Copy link
Copy Markdown
Contributor

Previously the method EraseAllParamSet was working only on RefineableObj created in Python, not on a "compiled RefineableObj" created in C++ by lsqr = lsq.GetCompiledRefinedObj(). So lsqr.EraseAllParamSet() didn't work, which is annoying for batched refinement which reuses lsqr but every call to lsq.Refine() creates a new param set which takes up memory.

Now, lsqr.EraseAllParamSet() works.

@vincefn
vincefn merged commit 371bb87 into diffpy:main Aug 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants